package pre.lxm.demo.rollview;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import pre.lxm.demo.R;


public class RollSquareActivity extends AppCompatActivity {


    @BindView(R.id.size_change_layout)
    SizeChangeRelativeLayout sizeChangeLayout;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_roll_square);
        ButterKnife.bind(this);
//        addRelativeChild();
    }

//    private void addRelativeChild() {
//        TextView tv = new TextView(this);
//        tv.setText("qqq");
//        tv.setTextSize(30);
//        tv.setTextColor(Color.parseColor("#FFFF00"));
//        tv.setBackgroundColor(Color.parseColor("#0000FF"));
//        RelativeLayout.LayoutParams rlp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT,
//                RelativeLayout.LayoutParams.MATCH_PARENT);
//        rlp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, TRUE);
//        rlRoll.addView(tv, rlp);
//    }

    @OnClick(R.id.btn_size_change)
    public void onSizeChangeClick() {
        sizeChangeLayout.change();
    }
}
